var RunScene = cc.Scene.extend({
	back_layer:null,
	run_layer:null,
	tip_layer:null,
	runSpriteSheet:null,
	onEnter:function () {
		this._super();
		cc.spriteFrameCache.addSpriteFrames(res01.run_p);
		cc.spriteFrameCache.addSpriteFrames(res01.aawin_p);
		this.initTeach();
		this.back_layer = new RunBackLayer01(this);
		this.back_layer.bake();
		this.tip_layer = new TipLayer01(this);
		ll.tip = this.tip_layer;
		this.run_layer = new RunLayer01(this);
		ll.run = this.run_layer; 
		
		gg.flow = new TeachFlow01(this);
		gg.flow.init(this.tip_layer.tip,this.tip_layer.tip_frame, this.tip_layer.flash, this.run_layer.arr);
		gg.flow.start();
		gg.flow.next();
	},
	initTeach: function (){
		// 初始化游戏参数
		gg.begin_time = new Date();
		gg.expId = 4;
		gg.score = 0;
		gg.errorStep = 0;// 错误步数
		gg.oneSure = 0;// 一次正确的步数
		gg.errFlag = false;
		gg.totalStep = teach_flow.length;
		gg.teachFlow = teach_flow;
	},
	over: function (){
		this.tip_layer.over();
		$.runScene(new FinishScene01());
	},
	backClicked: function () {// 返回按钮
		cc.director.end();
	},
	menuClicked:function(){// 菜单按钮
	}
});